package cn.jjxx.modules.dj.service.impl;

import java.util.List;
import java.util.Map;

import cn.jjxx.core.common.service.impl.TreeCommonServiceImpl;
import cn.jjxx.modules.dj.mapper.DjOrgMapper;
import cn.jjxx.modules.dj.entity.DjOrg;
import cn.jjxx.modules.dj.service.IDjOrgService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**   
 * @Title: 党组织管理
 * @Description: 党组织管理
 * @author yw
 * @date 2022-01-11 17:20:00
 * @version V1.0   
 *
 */
@Transactional
@Service("djOrgService")
public class DjOrgServiceImpl  extends TreeCommonServiceImpl<DjOrgMapper,DjOrg,String> implements  IDjOrgService {

	@Override
	public List<Map<String, Object>> selectAgeNum() {
		return baseMapper.selectAgeNum();
	}
	@Override
	public List<Map<String, Object>> selectOrgNum() {
		return baseMapper.selectOrgNum();
	}
	@Override
	public boolean insertBatch(List<DjOrg> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.insertBatch(list);
		}
		return true;
	}

	@Override
	public boolean updateBatch(List<DjOrg> list) {
		if(list!=null&&list.size()>0){
			return baseMapper.updateBatch(list);
		}
		return true;
	}
}
